1. コマンドラインと環境(Python のセットアップと利用)
インターフェイスオプション
-c
-m
sys.path から指定されたモジュール名のモジュールを探し、その内容を __main__ モジュールとして実行します。
-
<script>
その他のオプション
-i
スクリプトかコマンドを実行した後にインタラクティブモードに入ります。
このオプションはグローバル変数や、スクリプトが例外を発生させるときにそのスタックトレースを調べるのに便利です。
対話モードでスクリプト中の変数にアクセスできるため便利
-O
Remove assert statements and any code conditional on the value of __debug__.
-OO
-Oに加えてdocstringを捨てる
-u
Force the stdout and stderr streams to be unbuffered. This option has no effect on the stdin stream.